/**
 * Created by win10 on 2017/8/28.
 */
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

let store = new Vuex.Store({

  state: {
    count: 10,
  },

  mutations:{

    AddNumber(state){
      state.count += 1
    },

    ReduceNumber(state){
      state.count -= 1
    }
  },

  actions:{

  },

  getters:{

  }

});

export default store
